package thread;

public class Accout {
    private String no;
    private int money;

    public Accout(String no,int m){
        this.no=no;
        this.money=m;
    }
    //存钱
    public void deposit(int m){
        money+=m;
    }
    //取钱
    public void withDraw(int m){
        money-=m;
    }

    public String getNo() {
        return no;
    }

    public int getMoney() {
        return money;
    }
}
